// 此代码由飞云脚本圈www.feiyunjs.com整理提供
"auto";

//下滑
function scroll() {
    className("ListView").scrollForward();
}

//尝试点赞
function tryFav(btn) {
    btn.click();
    sleep(300);
    if (!click("赞")) {
        btn.click();
    }
}



while (true) {
    var c = className("ImageView").desc("评论").untilFind();
    c.each(function(btn) {
        
        tryFav(btn);
    });
    
    shuoshuotest();
    scroll();
}

function shuoshuotest() {
    sleep(1000);
    var shuoshuo = id("fol").findOne().children().forEach(child => {
        var target = child.findOne(id("b_l"));
        
    });

    toastLog(shuoshuo);

    //toast(shuoshuo);
}